<?php

namespace App\Admin\Actions\Goods;
use Encore\Admin\Actions\RowAction;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;


class GoodsPay extends RowAction
{
    public $name = '支付';

    /**
     * @param Model $model
     * @return string
     */
    public function handle(Model $model, Request $request)
    {


    }

    /**
     * @param $star
     * @return string
     */
    public function display($id)
    {
        return  '<button type="button" class="btn btn-xs btn-info btn-flat">支付</button>';
    }


    public function dialog()
    {
        $this->confirm('该地址未授权');
    }

}